<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>主页面</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.all.js" charset="utf-8"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">个人博客</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    个人中心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退出</a></li>
        </ul>
    </div>


    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="#">文章管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="#" class="display-iframe">我要发布</a></dd>
                        <dd><a href="#" class="already-send-artical">已发布的文章</a></dd>
                        <dd><a href="#">文章草稿箱</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="#">粉丝管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="#" class="fans">全部粉丝</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="#">留言管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="#">粉丝留言</a></dd>
                        <dd><a href="#">已标记留言</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">关于我们</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe class="iframe1" src="layui/images/face/timg.jpg" frameborder="0" width="1336" scrolling="No" height="650" leftmargin="0" topmargin="0"></iframe>
        <script type="text/javascript">
            var $ = layui.jquery;
            $(".display-iframe").click(function () {
                $(".iframe1").attr("src", "newmessage.html");
            });
            $(".already-send-artical").click(function () {
                $(".iframe1").attr("src", "articalPage.html");
            });
            $(".fans").click(function () {
                $(".iframe1").attr("src","echarts.html");
            })
        </script>

    </div>

    <div class="layui-footer" style="height: 10px">

    </div>
</div>
</body>
<script rel="stylesheet" src="layui/layui.all.js"></script>
<script>
    var element = layui.element; //元素操作
</script>

</html>